package org.example.packone;

class PackagePrivateClass {
    public static void sayHello(){
        System.out.println("Hello , I am PackagePrivateClass");
    }
}

public class ClassThreeInPackOne {
    public static void main(String[] args) {
        ClassTwoInPackOne classTwoInPackOne = new ClassTwoInPackOne("hello world");
        classTwoInPackOne.printMessage();
        classTwoInPackOne.printMsgWithPackageVisibility();
        System.out.println(classTwoInPackOne.fieldWithPackageVisibility);
        System.out.println(classTwoInPackOne.protectedField);
    }
}
